import strutils 

type
  Result* = enum
    Sublist,
    Equal,
    Superlist,  
    Unequal,

proc sublist*(a, b: openArray[int]): Result =
  let
   al = a.join(" ")
   bl = b.join(" ")

  if al.len < bl.len and bl.contains(al):
    Sublist
  elif al.len > bl.len and al.contains(bl):
    Superlist
  elif al.len == bl.len and al == bl:
    Equal
  else:
    Unequal
